#include <iostream>
using namespace std;
int main()
{
	int c,s;
	float p,w,d,f;
	cout<<"Please enter p,w,s:"<<'\n';
	cin>>p>>w>>s;
	if (s >=3000) c =12;
	else c =s/250;
	if (c == 0)    d =0;
	else if(c >= 1 && c < 3) d =2;
	else if(c >= 3 && c < 7) d =5;
	else if(c >= 7 && c < 11) d =8;
	else if(c >= 11 && c < 12) d =10;
	else d =15;
	f =p*w*s*(1 - d/100.0);
	cout<<"freight ="<<f<<endl;
	return 0;
}
